import request from '@/utils/request'
import axios from 'axios'

export function searchUser(name) {
  return request({
    url: '/vue-element-admin/search/user',
    method: 'get',
    params: { name }
  })
}

export function transactionList() {
  return request({
    url: 'http://1.92.204.101:5000/task/get_my_tasks',
    method: 'post',
    headers: {
      'Authorization': 'Bearer ' + sessionStorage.getItem('token')
    },
    credentials: 'include'
  })
}
